updated the map javascrip