title: Execute JavaScript before page loads in PhantomJS driven by Selenium
body: <p>I need to execute some javascript before the page page loads(= before the javascript on the page is executed)</p>
  
  <p>Is that possible via ghostdriver?
  using phantomjsdriver 1.2.1 for java, phantomjs 2.0</p>