modify code for jshint