Trie structure based text search for the browser