provide callbacks with XHR response, and parsed JSON