david walsh rems, updating easing mixin, moving some functions around