Automatically make same-page links scroll smoothly