Added a pure JavaScript smooth scrolling function.