A JavaScript trie implementation for Node and the browser