Fixed some errors due to removal of class Backbone.Events