Backbone.js and Ruby on Rails application