Updates Map's preamble

Use of Map.prototype.remove is deprecated
Merge pull request #5646 from trek/update-mapjs-preamble

Updates Map's preamble