ajaxErrorHTML can also be a function that returns an HTML string.

In this example, our buggy.php script is acting strange and returning invalid JSON and long response times.