Separating out JS code into a new file, animated content display