Styling changes as per Google JavaScript Style Guide

Styling details from http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml