insert animatescroll() function