phantomjs es5 polyfill