Abstraction for Javascript timers: setTimeout, setInterval, clearTimeout, and clearInterval.