title: PhantomJS is not executing JS
body: <p>I try to make a screenshot of www.fallswoodsmith.com with PhantomJS. My code is:</p>
  
  <pre><code>var page = require('webpage').create();
  page.viewportSize = { width: 1024, height: 768 };
  page.clipRect = {top: 0, left: 0, width: 1024, height: 768};
  
  page.open('http://www.fallswoodsmith.com', function () {
      page.render('cache/www.fallswoodsmith.com123567266_1024_768.png', {format: 'png', quality: '10'});
      phantom.exit();
  });
  </code></pre>
  
  <p>This page is JS only, so without JS you get no content. For some reason PhantomJS is not executing this JS. I've also tried to set a timeout of 5 secs for the <code>page.render()</code> and <code>phantom.exit()</code>, but this did not change something. If I do a <code>console.log(page.content)</code> before the <code>page.render()</code> I get the full HTML of the page - just without changes that JS does.</p>
  
  <p>Why does PhantomJS not execute the page's JS?</p>
  
  <p><strong>UPDATE 1:</strong>
  I've added the following debug stuff:</p>
  
  <pre><code>page.onConsoleMessage = function(msg, lineNum, sourceId) {
      console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")');
  };
  
  page.onError = function(msg, trace) {
  
      var msgStack = ['ERROR: ' + msg];
  
      if (trace &amp;&amp; trace.length) {
          msgStack.push('TRACE:');
          trace.forEach(function(t) {
              msgStack.push(' -&gt; ' + t.file + ': ' + t.line + (t.function ? ' (in function "' + t.function +'")' : ''));
          });
      }
  
      console.error(msgStack.join('\n'));
  
  };
  
  page.onResourceError = function(resourceError) {
      console.log('Unable to load resource (#' + resourceError.id + 'URL:' + resourceError.url + ')');
      console.log('Error code: ' + resourceError.errorCode + '. Description: ' + resourceError.errorString);
  };
  
  page.onResourceTimeout = function(request) {
      console.log('Response (#' + request.id + '): ' + JSON.stringify(request));
  };
  </code></pre>
  
  <p>No console.log() output in my console...</p>