correction on js for jshint