Added some constants for configuring PhantomJS
Add switch to window utility method.