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.
Javascript from my experience is just a bad language. I know that just like objective-c and java aren't going away on desktop or mobile because the underpin a lot of the tech that runs those platforms despite javascript may be running on top. Html 5 needs to fully conquer the web anyway before taking mobile and desktop on which won't be one for a while.