update Gemfile, AngularJS version, rearrange sprockets requiring javascript