Port relatedto js away from old ajaxutils