Changed from setInterval to setTimeout function to reload dynamic pages. This is because if left on for long periods, pages will become unresponsive and eventually halt the entire browser because of a long build-up of queued refresh requests.

Now, the next request will only be sent 5 seconds after the last one completed, rather than 5 seconds after the last was was requested.