Function.prototype.bind fix for PhantomJS