While I agree Java is used everywhere, I think the reasons are very similar to why VHS was much more popular than BETA, or why COBOL still represents a _HUGE_ share in programming language usage.
Javascript is also used in the web, mobile and desktop. I see the latter much better suited for the future.