Fix fromEventTarget signature and add code example