separated out trie search feature, init nodejs