Like you said it was never designed to have a standard library and so forth, and therefore it sucks to use JS to do a lot of things.
However I was just saying I don't think it's fair to say something is badly designed because it's bad at doing things it wasn't designed to do. The interpretation of whether having a functional scope is good or bad is also subjective IMO, depending on context.
But anyway if your takeaway from my comment was just this, you didn't get my real point at all. I don't really care about whether javascript is a good language or bad language. My real point was this whole disaster is caused not just by javascript alone.