xajax_response: fix InsertAfter

Signed-off-by: Peter Lieven <pl@kamp.de>
doAjax.js: fix handling of plain objects

Signed-off-by: Peter Lieven <pl@kamp.de>