Add XHR method