Refactor application to use Backbone.js