Added back the preventDefault() — this handler is attached to both buttons and anchors.