A couple of bugfixes
AJAX: use error response, define `document.error`
Update jsonary.js