How to use polling to periodically fetch new data from a server and update the page without reloading it.