returned javascript slow scrolling