changed used jquery versions back to standard rails
moved loading of plugins in application.js
removed duplication in javascript files
removed unneeded code from routes and controllers