Thank you, I'll update the example. I usually stay in es5 for IE11 compatibility (htmx is still supporting IE11) so I tend to write js in a more archaic style.
But I'm a bit of a contrarian and every time someone tells me to drop IE support I think "Maybe I won't."