fixed big in trie javascript when passing current word