Chat client in node.js