Test: create Websocket connection to server
Refactor: use jQuery plugin pattern