Javascript Scroll Assignment