Small bugfix on cancelling event defaults
Making fixes to make this work with jQuery 1.9