I have written huge, complex, graphics-intensive applications with Javascript, and that was not my experience at all. So maybe it's not the language, but the person using it that is responsible for the mess.
> It's similar to WinAPI. Sure, you can write C with WinAPI and it's enough for simple applications.
That is a very far-fetched comparison, in my view.