Update ajaxFunctions.js