Chat client written in node.js