turn absolute dates into relative time with JavaScript - updated every second (with a single global timeout)