A chat server in js