pass xhr to _oncomplete