The most pervasive and harmful companies all use JavaScript and couldn't do the harm they do without it (or, I suppose, an equivalent technology).
I would venture that I could solve all the problems you would solve with open source JavaScript with another programming language, because almost no program actually needs to be a web application.
Conversely, I can write open-source javascript that does something useful for you, that does not mine your data or do anything of that sort.
I don't see how this relates to javascript.