Fixed JS so animations happen at proper times. Animations are undesireable however.