only scroll for links that exist within #main-nav

The event was attached to *all* links so an error is thrown when clicking on external links. It goes unnoticed because after the error is thrown the `return false` never fires, but it's still unnecessary.