Modified css animations and improved javascript files