Moved around functions so that they are groupped by 'intelliscroll' and then animation.