Browserified version of jivewire-client

The reason for the "ws.onerror" is because the browser version of ws.send() doesn't have a callback function, so this is the way around it