This is really easy...
People are making this way too complicated. It's really this easy, just three simple rules:
1. Semicolons to terminate statements should be required. Anybody not using them should be fired.
2. Braces to denote blocks of code, even if just one statement, should be required. Anybody not using them should be fired.
3. Spaces (NOT TABS) should be required. Anybody using tabs should be fired.
I have just solved 99% of ECMAScript's issues in three simple rules. Where do I send my consulting invoice?