added an isDefaultPrevented function for fixing a bug in older android browsers.