Browserified version of jivewire-client

Does this overwrite the current on error? because that has been defined already. If it does we should set it back to what it is originally after the dfd is resolved or rejected.