Modifying tap event from ontap to onmouseleave