using JS for scroll8