title: Phantomjs download clean html after javascript processing
body: <p>I want create file and write clean html after javascript processing. How I can do this?</p>
  
  <p>My code phantomjs:</p>
  
  <pre><code>var page = require('webpage').create();
  var system = require('system');
  var args = system.args;
  var fs = require('fs');
  
  page.open(args[1], function(status){
      console.log("Status: " + page.content);
      if(status === "success") {
  
          fs.write('file.html', page.content, 'w');
      }
      phantom.exit();
  });
  </code></pre>
  
  <p>Now it write html with not processed javascript. Help please save clean html with executed javascript. Thanks.</p>