added smooth scrolling function to custom.js