define easing functions only once

The easing functions are good but they should only be defined once, not every time .animatescroll() gets called.