It's "client-server" architecture for reasons though. Client and server mean to have completely different roles, architecture, languages. However, browsers just happened to support one language. There are also protocols between that.
I don't hate javascript as I write it too, but I also write many other languages. And I also think more of the web generally.