Comment 3 for bug 1315796

After investigation I think the most optimal is Google JavaScript Style Guide.
It is available at:

There are many useful tips and recommendation how to write efficient, accurate beautiful code.

For code formatting they follow the C++ formatting rules in spirit:

If we agree with some coding style, I think such information should be added into README file.