Animated classes applied with JS