title: Simple JavaScript appendChild not working
body: <p>This is a very "standard" piece of JavaScript code (I've seen it on thousands of examples), but it doesn't work for me:</p>
  
  <pre><code>&lt;head&gt;
  &lt;title&gt;Temp&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
      function start() {
          var newScript = document.createElement('script');
          newScript.type = "text/javascript";
          newScript.src = "toBeIncluded.js";  // THIS ONE DOES NOT WORK
          document.body.appendChild(newScript);
          // alert(newScript.contentText);
      }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onload='start()'&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In fact I don't get any error, and the  tag gets actually appendeded - unfortunately it is completely empty (I check it with the commented alert line). Please consider that the "toBeIncluded.js" file exists, is not empty, and is in the same local directory of this HTML (I'm running everything locally on my PC).</p>
  
  <p>Please help, I've tried lots of possible variations (change directories, include full path, move code to the "body" section, ...) but no success</p>