fix error passing options to browser websocket constructor

this might be kind of ugly, but seems like a simple solution?