fix jshint error about unused