fixing jshint warnings