Moved smooth scrolling into the js file