fix code for jshint