lib: main: Reformat with js-beautify.

The particular line used was, essentially:

    js-beautify --jslint-happy main.js

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
data: resources.js: Reformat with js-beautify.

The particular line used was, essentially:

    js-beautify --jslint-happy resources.js

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
data: readability.js: Selectively reformat with js-beautify.

Almost all the changes were performed by js-beautify, but I looked hunk by
hunk (which means that I probably made a bunch of mistakes) to decide which
formatting changes could bring readability to readability.js (gee, the
irony).

Anyway, this code is a mess and it most definitely should be broken down
into smaller pieces, with some obvious coding issues removed.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>