Random text generator in JavaScript.