title: How to execute <script> code in a javascript append
body: <p>I'm working with a plugin that is only Javascript. I need to have it dynamically create a DIV element with an advertisement in it.</p>
  
  <p>I can't figure out why this doesn't work:</p>
  
  <pre><code>$(this).append('&lt;div class="overlay-background"&gt;Advertisement
  
       &lt;script type="text-javascript"&gt;
  
            GA_googleFillSlot("blog_landing_right_rectangle_300x250");
  
       &lt;/script&gt;'
  </code></pre>
  
  <p>It results in the element created with "Hello World" but it does not execute the GA-googleFillSlot function. </p>