My problem isn't with javascript as a UI framework, it's what I use too. Everything else is five independent platforms each with 3+ half implemented ways to do things, all of which have been left to wither on the vine as all the tech companies give up and use the web instead. The DOM is the best application tool remaining.
My problem is that javascript is both the tool to make basic enhancements to documents, like collapsible menus or form submissions, and the tool to create whole applications. The former needs it to run by default on every page, but the latter means that that it has the potential to harvest a zillion kinds of data, perform far more computation than is needed to display a webpage, and make cheap computers and poor connections unusable.
And it doesn't matter that these problems are avoidable if companies get their shit together, because I'm not writing the code for every page I visit.