Ensure instances of WebSockets also have readyState constants

Thus matching the specification.