While all your points I more or less agree with, I’d argue that despite them, or maybe because of them, JavaScript is actually flourishing rather than struggling.
All of the issues you mention are already solved or in the process of being solved by the community and engine vendors.
So for example, the lack of type safety in JS is being solved by the community with utilities like TypeScript and Flow. And while it’d be cool to be able to run TS natively in V8, it’s unlikely to ever happen since the performance benefits would be negligible compared to TS that’s compiled to optimized JS anyway. I don’t see any real issue with transpiling TS considering it’s just one more step in the build pipelines we’d need regardless of whether we use TS.
The performance issues are being solved by things on the like the new Ignition+TurboFan pipeline for Chrome and significant performance improvements in ChakraCore for Edge.
Library/framework churn has to be the most often cited issue of the JavaScript ecosystem, but I don’t even consider it an issue, it’s merely a byproduct of (in my eyes) one of the ecosystem’s greatest strengths; a rapid iteration process. If it wasn’t for this “move fast, break things” attitude in the community, many of the lovely declarative high-end frameworks/libraries and awesome tooling (hello HMR) we use today wouldn’t even exist, we’d all still be using jQuery to enhance server-rendered views and building our bundles with Grunt.
Yes this rapid pace can make it harder to keep up with what’s hot, but it’s still easy enough to remain up to speed if you read HN / Echojs / JS-related Medium publications a few times a week.
So ultimately, JavaScript’s language-inherent problems are being solved by new languages that provide type safety and transpile to JS (TypeScript, Elm etc.). JavaScript’s runtime-inherent problems are being solved by vendors, and JavaScript’s ecosystem problems are being solved by the community.
JavaScript isn’t struggling, it’s just moving so quickly that to an external viewer it appears as total chaos.