map jshint complaints correction