demo preventdefault at beginning