xajax.js: add error callback

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