A bind shim for browsers lacking Function.prototype.bind()