use sockjs to talk to the browser