lazy construction of xhr object.