timer.html: refactor timer obj, functions.

Now the timer obj model is separate from tick and start functions, which allows me to control scope better.