Hopefully fixed indentation problems.

The problem comes from the presence of tabs in the original file.
I would gladly do a whitespace-cleanup with Emacs if you agree :-)

Really tabs are a pain when sharing code.
While not every project agree on 4 or 2 spaces, most of them agree on
preferring spaces indentation:
https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
http://javascript.crockford.com/code.html
http://www.python.org/dev/peps/pep-0008/#tabs-or-spaces