e.target fix for IE8

That caused errors in IE<=8. Changed it to `e.srcElement`