Update animationloader.js

much functional