Browserified version of jivewire-client

also only resolve when it is closed