JS scroller optimizations