Pulled all non-template neccesary javascript out and put into common app.js