Changed structure of application and converting it to Backbone.js application