support phantomjs 2