Put an alert in ajaxError. This is not pretty and should be moved to the client