make the time update in sync with the system clock, and refresh on page focus. wrap google analytics in a js timeout to not block rest of page load when offline