anim.addEventListener('complete', function() { setTimeout(function(){ anim.goToAndPlay(0); }, 2000); })