JS Scroll assignment