I you are talking about some kind of timeline, may I plug my own JavaScript solution for this?
It's called Barrel: https://github.com/zachrose/barrel
You can think of it either as map for setTimeout, or a way to turn sequences into a player object that accepts your own function to perform each point in the sequence.