Remove AJAX of function