update js on index page scroller