smooth scroll to anchors

Code found on the internets. Doing what it's asked. No time wasted.