Replace $.proxy with Function.prototype.bind-like function