update javascript about map.