fixing use of jquery tap event