Sample implementation of trie data structure using jQuery auto-complete