using JS for scroll3