using JS for scroll4