Fixed specification of function default args
Fixed toggle animation off

When the animationTimeRatio was large, it was
possible for reinitializeAnimation, when triggered
by pressing the "Toggle Animation" button, to have
no effect, since one final iteration of
animateSimulation was still incomplete