Clean up and Websocket implemented

The jquery plugin may be broken