Wrestling with XHR requests