Replace the non-standard Event 'srcElement' property with the standard 'target' one

Event.srcElement is IE-specific and isn't supported in Firefox.