add preventDefault
Merge pull request #5 from Raynos/prevent-default

add preventDefault