A JavaScript timer object