code review application.js 2