open websocket on document ready
minor updates