Chat client in Node.js