Javascript is just a platform to run transcompiled stuff on these days, not unlike the name giver's JVM
Large headcount of developers. Everybody and their dog does Javascript.
If that's your metric, java has many more developers (millions more, in fact).
There are all sorts of optimizations that are much harder to do in a non statically typed language. There are also all types of guaranteed safe automated refactoring you can do with a statically type language. I shutter to think about using a non type safe language with a large code base.
Us holdouts would like to have somewhere left to run to too.
So by that metric, Java is a significantly better choice still ;)