Yeah, in reading the below link section "unified backend extensibility" it almost sounds as if what I describe is being focused on. i.e. it sounds like a project targeting jvm can now compile js for it. I mean, ktor is backend and it does html and routing and I think it did css at one point, but never js which doesn't make sense. It's like I sense the concept of a frontend and backend evaporating with kotlin and instead being able to program with client and server concepts directly, man that would be cool.
https://blog.jetbrains.com/kotlin/2019/12/what-to-expect-in-kotlin-1-4-and-beyond/