Javascript Hash Array Mapped Trie