title: jsdom not loading external resources
body: <p>I can't seem to get jsdom to execute external scripts and I can't seem to find any concrete examples. I don't get any error when I call my testing function, but nothing happens. </p>
  
  <p>This is my code:                       </p>
  
  <pre><code>    var window = jsdom.jsdom(body).createWindow();
  
      jsdom.jQueryify(window, './lib/jquery.js', function () {
        console.log(window.$("#a1").text());
        window.testing();
        console.log(window.$("#a2").text());
      });
  </code></pre>
  
  <p>This is the html its loading:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
              &lt;script type="text/javascript" src="stuff.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      Hi there
  
      &lt;div id="a1"&gt;
      &lt;/div&gt;
  
      &lt;div id="a2"&gt;
      &lt;/div&gt;
  
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My testing function:</p>
  
  <pre><code>function testing() {
      var a2 = document.getElementById("a2");
      a2.innerHTML = 'Second div';
      console.log("executed");
   }
  </code></pre>