issue-173 adding polyfills to PhantomJS