small change to Map.js, needs testing