proper Xhr, example request, tidy up