Reorganized AngularJS for Rails