Fix ReadyState constants, as per https://github.com/gopherjs/websocket/commit/7c6bfd1d01682872a112b9af5eef0cc4a40a325e#commitcomment-8490681