preventDefault() and tutorial