Update animate.js

Just pushing for testing purposes.

Check if cache and cache.classes exist. Sometimes cache is undefined and errors are thrown when looped over.