A better JavaScript Timer, Example 2