Carry event object for click events into called JS code