Add AJAX-error handling.