* Removed console.log
* Changed the search for websocket to something more widely compatible (and which won't break if websocket is not specified)