Fix .bind call for PhantomJS

Function.prototype.bind does not work on phantomJS