Refactored the Home view handler so that a correct response is generated and added an async view function that both return the same JSON but in two different ways.