Clean-up and strict mode introduction.

I sorted-out some bad line-breakages, removed unnecessary explicit toString() calls and introduced strict mode.
I also applied some formatting to the htmls.