Javascript Foreach Loop Through Hashmap