Committing the Timer example in JS