If js is template(e.g. in the footer), use this:
var myHtml = '<?php echo do_shortcode being('[samShortCode id="69" title="Mambuda"]');?>';
If the js in a separate file, it is a little more complicated and is done through ajax. Can email separately.