Intercept errors in jQuery and Backbone event listeners