defined the scrolling funtions, (smooth scroll still not working, maybe an issue with loading of js files)