cleaned up application.js