Prefer httpRequest.onload and remove this line.