Added preventDefault to click handler

The page no longer jumps to the top when a navigation button is
clicked.