Updates AJAX class