Node.js chat application using websockets