- add error-handling of JSON request in app.js