Remove debug logging; check for event.preventDefault