fixed the jQuery, added in the websockets