smoothScroll is now a function