Refactoring some code to avoid scope context issues, using Backbone's override for 'on'