make sure we use the event argument, not window.event for trackEnd