add phantomjs detection