Basic error handling. Initial rendering based on JSON data.