Work for AJAX class