Show errors if something goes wrong

If anything goes wrong with the ajax results show an error rather than
just leaving 'Loading...' on screen.