Use the fat arrow instead of 'that'
Refactor application.js to remove duplication