Javascript Hash Trie