js additional styling guides

some guidelines for javascript code styling, along with a clear
example. See http://jscode.org/03c498