JD.com returns to profit in Q1 on delivery-loss progress