Deal with old onEventName (onclick, onkeydown, etc..) event handling model in FRP style