saving the sharejs websocket object in the window object