create succinct trie angularjs service file