change where preventDefault should be called

preventDefault should be called only when handling data-remote or data-method present.
put event default after remote method checking
Merge pull request #2 from tubaxenor/patch-2

change where preventDefault should be called