Update Map.js

Global variable fixed.