Update text-analysis.js