fixing jshint complaints