xajax.js: add sync call

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