Fix JS syntax error in application.js