cleaned up application.js

still needs more clean up