Easily modify XHR request and response