add support for phantomjs