Adapted Ajax functions to Zikula 1.3.x