Change 'srcElement' to 'target'

srcElement is only available in IE. In all other browsers it is target.