readme for successfn and errorfn for generated xhr