Support for PhantomJS and IE 11