Use a real trie for the words.js dataset.

This results in 1/6th the memory use.