Update animate.js

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