change where preventDefault should be called

preventDefault should be called only when handling data-remote or data-method present.