Cleans up animator.js