title: Script tag not working when loading PHP page
body: <p>I'm making an AJAX request to retrieve some JavaScript wrapped in <code>&lt;script&gt;</code>-tags that should be inserted on the current page. How can I make the inserted code execute upon insertion?</p>
  
  <p>I'm using this snippet to append the code:</p>
  
  <pre><code>function drawOutput(responseText) {
      var container = document.getElementById('output');
      container.innerHTML = responseText;
  }
  </code></pre>
  
  <p>The HTML retrieved (<code>responseText</code>) looks something like this:</p>
  
  <pre><code>&lt;script&gt;
      console.log('Injected!');
  &lt;/script&gt;
  </code></pre>
  
  <p>So how can I make the <code>&lt;script&gt;</code> tags execute?</p>