Refactor using RequireJs and Backbone