Added support for Phantomjs2.0