Generate words in Node.js