A timer class for javascript that counts down one second at a time, and executes code on every tick.