Ran the Javascript code through a beautifier
Put *all* of it through a beautifier
Re-adding comments from original
Also, reformatting slightly, for smaller diffs