AJAX error handler
Merge pull request #184 from systopia/dev_183

fix https://github.com/Project60/sepa_dd/issues/183