added phantomjs support