finish off the ajax POST

finished off the ajax POST.
We might need to add a little here. Are we allowing empty body etc?