isn't this the standard way of serving responses to XHR requests?