title: Executing PHP code inside a .js file
body: <p>I'm trying to get a bit of PHP to execute inside of a .js file, but obviously don't know how to do it properly. </p>
  
  <p>Basically the code is adding some HTML tags to my page, which I am using for a slideout contact form. However the contact form itself is done in Wordpress by a shortcode. So I'm trying to get the shortcode to work inside the code that makes the form slide out. </p>
  
  <pre><code>var phpTest = '&lt;?php do_shortcode("[contact-form-7 id=\'1088\' title=\'Live Chat Form\']"); ?&gt;';
  
  // add feedback box
  $this.html('&lt;div id="fpi_feedback"&gt;&lt;div id="fpi_title" class="rotate"&gt;&lt;h2&gt;'
      + thisSettings.title
      + '&lt;/h2&gt;&lt;/div&gt;&lt;div id="fpi_content"&gt;'
      + phpTest
      + '&lt;/div&gt;&lt;/div&gt;');
  </code></pre>
  
  <p>If I change the variable "phpTest" to a regular string with text, it shows up fine, I'm just not sure how to execute the php in this instance. </p>