reworking the weboskcets code a bit.
websocket example now works on safari, ff, and chrome