add automatic horizontal scrolling (TODO: scrollTo(0,0) not working on page reload)