Function.prototype.bind implemented so that phantomjs tests are passing