consolidated js code into one file. trying out new stuff with Rails controllers.