Fix page reload problem with animate.css

Also deleted some commented-out js code that was unused