I’ve seen things you people wouldn’t believe… Piss ships on fire off the shoulder of Orion… I watched Pee-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like piss in rain…
– Dirt Owl replicant from the future
JavaScript doesn’t suck and it’s performance is more than adequate for most applications. If you are doing some serious number crunching you might want to look at web assembly, but last time I checked it doesn’t actually have access to the DOM so it’s not really got any control over the page itself.
JavaScript is great. Typescript is better. Give JavaScript a go and if you want more safety try typescript.
I personally use the Vue framework for my web apps but there are many others out there, and if you really want to keep things clean you can opt out of using Frameworks altogether.
Anyway, you are never going to be able to completely avoid JavaScript no matter what approach you take, so if suggest learning some and making up your own mind