client side part of ajaxSSEsocket project