fix spelling. inline code the xhr types.