Updated application.js to latest version