smoothScroll function, no other changes, reverted
more functions