It doesn't matter that it's JS, they have their own, performant interpreter for it and it's a limited subset of JS. And that's just one layer, the rest is actual compiled code, increasingly Rust.

I was skeptical, too, but it allows for some serious visual tweaking beyond what KDE allows without rewriting code.