Sure, check out the "Code formatting" section in the Google [JavaScript Style Guide](https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#JavaScript_Style_Rules). Other sections have more sample code that might provide some clarifications.