crossbrowser prevent default
add function also when jQuery is there