Simple javascript websocket client and chat example