playing with application state
extending functions
chat, for connection use socket.io on node.js