working timer js commit 2