added basic initialization of sockjs js client for browser and nodejs