Added polyfill for phantom.js