Simple Trie datastructure for Node.js