code review application.js 1