COBOL was better than JavaScript.
Yeah, right. ...
Dude, give me a break, you're being silly.
Sure, JS it's a tad more ambiguous than PLs from back when we used punchcards, but, come on!
So, yeah, JS has lose typing. Newsflash: That is a *feature*. You have to know how to handle it though (hint: COBOL style isn't going to get you anywhere here).
So it would be tricking writing ERP, because JS has more rope with which you can hang yourself - so, yes, you do actually have to watch out what you are doing in different way nowadays. And yes, there are a lot of non-programmers out there today writing code - I'm trying to write an extension for Typo3, so tell me about it.
So JS uses Protoyping instead of Classes - that's a feature too - get with the programm.
I don't like the syntax of JS either, it's ancient by todays standards and I'd prefer Python. But I can test my JS on the nearest computer, because the runtime is everywhere.
Truth is, JS runs everywhere nowadays, and allthough you should expect callback hell when writing larger serverside apps, that's actually an encouragement to do things unix-style for non-trivial projects. That's why so many people use it. Even those that can't programm. ... Yeah, that's anoying, but repairing their shite earns us the bucks, so go figure.
I suggest you sit your ass down, take a deep breath and get yourself aquainted with some non-amature JS code. There's a nice Oreilly called "JavaScript - The Good Parts" to get you started nice and easy.
But don't forget to chase the kids of your law before.
My 2 cents.