Set up structure for animation, added cljs-to-js function