Fix headless test failure by adding polyfill for Function.bind for Phantom.js