fix jshint error about unused variable