Make skip-scrolling to target href a reusable function.