title: Rendering a javascript webpage page with phantomjs
body: <p>I am trying to render a a javascript evaluated source code from a website using phantomjs. But every time I try i only get the source code as is (similar to view source from the browser). What I actually want is the javascript evaluated code (what we see from inspect element from google chrome browser). My code looks like this:</p>
  
  <pre><code>var page = require('webpage').create();
  page.open('http://www.google.com/', function (s) {
      console.log(page.content);
      phantom.exit();
  });
  </code></pre>
  
  <p>Am I doing something wrong here?</p>