provide ws as second argument to onmessage (and onclose?)
yay superficial testing shows things work
quick n' dirty regex acceptance