Added the JSON fetch request with the 5 seconds loop