event.scrElement is not a standard. Thus changing event.target as this works in Firefox as well