Thin wrapper for XHR