Refactoring code to use jQuery Mobile/Backbone Navigator plugin; Refactoring to use RequireJS