add jshint comment and do a little cleanup