I have only used javascript a little bit, but I think it's like anywhere other language: it's as good as it's user.
It's more the social ecosystem. Sure, core javascript is fine, but it allows a certain ease of use that leads to the bloated mess for which it is known. That ease becomes exploited by the general community, and it becomes the defacto way to use the language.