simple chat application in nodejs+localstorage+socket.io