strategically placed preventdefault