Adding support for Phantom.js.