It seems like you could replace all of your setTimeout and setIntervals in your code using something simple like:
var foo=0;
TweenMax.to(foo, 1, {
onComplete:function(){
// do something
}
});
Of course you could use repeat:-1 and onRepeat to make this a setInterval, too. Note that I Tween a generic variable as opposed to a DOM element to avoid the cost of accessing the DOM. Now this comes with several benefits such as the ability to pause, resume, or even killing all timers wit