adds hack for mobile safari lack of html5 event