Fixing reference errors in `client` methods, fixes #35 (needs to be built)

Building
Merge pull request #36 from avoidwork/edge

Fixing error handling in XHR requests