Update phantom.js script to work with phantomjs 1.9