added a polyfill for Function.prototype.bind

PhantonJS uses an old version of javascript core:
https://github.com/ariya/phantomjs/issues/10522