An EventTarget based JavaScript counters the hard way for better precision scheduling.