Javascript Push Function Into Arraylist To Hashmap Code