Use a map in the sentence generator, too. Add console.output for performance checking to test page for 1000 iterations of generateSentences() (time cut in half after map)
Fix a bug in the buildMap() method and don't re-build the map on every call to generateSentences() (an even more significant performance improvement)