Obligatory Simpsons reference: "Can you imagine a world without lawyers?" [0]
But basically without JavaScript we would have used Java applets and the Java Virtual machine.
So your browser would actually be a hypervisor where each "tab" is actually a container for the JVM. An inside that container you could execute any language that compiles to the JVM. Different apps would run in it even a web browser would run on it!....
A little bit like what wasm is trying to accomplish now but 25 years earlier.