jshint warning correction