small syntax changes in application.js