A text-prediction JavaScript tool developed using trie