Changed JS to a possible fix for animation.