Fixed polyfill issue with PhantomJS