fix jshint complaints in mapmodel