Start refactoring into Backbone framework