Revert: Fix bug in AjaxUtil and  onajaxend
(79eb7baecf3d7e1718a7333b975e2bf3a2e3f436)