refactor($animate): use $animate.$$setClassImmediately to save code
refactor($animate): clean up core $animate code