using JS for scroll6