(My) JavaScript Coding Guidelines and Standards   These
JavaScript guidelines are based on usage with the Yahoo! User
Interface Libary (YUI). Most of the stuff mentioned can also be
applied with no regards which library you use (or if you don’t
use one at all). As a general rule, I try to run my JavaScript
code through JSLint and most of the following guidelines are
based on and often reference Douglas Crockford’s Code
Conventions for the JavaScript Programming Language.  Module
Declaration  Each JavaScript feature/module should be coded
according to a proper JavaScript Programming Pattern, preferably
the Revealing Module Pattern. This keeps your JavaScript safe
from namespace collisions and also means you can expose only a
limited “public” interface whilst keeping the unsightly workings
of your module hidden away in a closure. Naming of the module
should follow the YAHOO.YourNameSpace.yourFunction convention. I
have chosen “CRUSH” as my namespace, so the declaration of
someFunction could be like:  YAHOO.CRUS