Updates Map's preamble

Use of `Map.prototype.remove` is deprecated
is that like `for (var key in map) {` ?