commented _/components/js/script.js to explain how the text generation functions.