Change 'srcElement' to 'target'