OO Timer class for JavaScript, mostly based on the AS3 Timer class.