Clearing out JS animations, adding CSS animations