added wordgen code to app.js