Here is an easy and convenient way of using something similar to the Java map:
var map = {
'map_name_1': map_value_1,
'map_name_2': map_value_2,
'map_name_3': map_value_3,
'map_name_4': map_value_4
}
And to get the value:
alert(map['map_name_1']); // Gives the value of map_value_1
... etc. ...