A very simple text clock in JavaScript