have javascript check once a second so we're never more than 6s out of date