Javascript Push Function Into Arraylist To Hashmap Internal Architecture