added basic implementation of the sockjs for js client