revised application.js