Writing Good Javascript Guidelines
this is a living document that's been compiled by lots and lots of people, some people who are really influential in the community as well.
github.com/rwaldron/idiomatic.js
And essentially the key message is that all code in any codebase should look like a single person typed it, no matter how many people contributed. So that means that everybody has to stick to the same style so that the whole project looks consistent.