Change method to stop event propagation

if (event.defaultPrevented) return;  has different behaviors depending on browsers