made a main controller and added backbonejs gem to gemfile