websocket.js: Remove toLowerCase in register()

Previously we lowercased the registration but not the emission, which
made it possible to emit mixed-case messages but not to receive them.
Now you can emit/receive whatever you like, so long as you're
consistent in your casing.

Reported-by: Johan Lindskogen <johan.lindskogen@gmail.com>