Fix syntax errors in application.js