Reload page on ajax errors.

The error message will be shown on the alert div