I was trying to do a delayed timer that would reset if _toggleStripes was called again before the first timer was executed. Your approach looks much more elegant. Does a setTimeout at zero account for consecutive calls outside of the event loop, or would that even be a concern?