Javascript Select Object From Array To Hashmap