add phantomjs logging