T9-esque word autosuggest in JavaScript