Added error reporting on Ajax loading errors.