Update the ajaxFileUpload js function