added a simple load indicator and error handling for the Ajax JSON fetch