Remove duplication in anim_ease.js