Moving JS to Backbone