Changed some animations to use js.