implement socket.on('word') and clean app.js