Add polyfill for Function.prototype.bind

So that we can easily bind a `this` to function calls in event handlers.