Restyled code according to Google JavaScript Style Guide

Code follows http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml with 80 characters line length hard wrap.