Client side code for Backbone