jshint code review