modified the js for the browser to differentiate between socketio and websockets.