Changed from jQuery smooth scroll to Javascript