add phantomjs support