XHR is never called with method argument