scrolling javascript assignment