Add comments to the main js sections.

It seems still not interesting to divide in files, the code is
small. Also replace the default template.