Currently, I have implemented a display view that utilizes the app.js file. The data is retrieved from the database and displayed using an API in the app.js file. I am looking to automatically refresh the display every 5 seconds without having the entire page refreshed, but rather just updated. Within the code, there is a div named 'mydiv' which contains the display contents. How can I achieve this functionality?