Use function.bind() instead of $.proxy