added more inline comments, default to adlibre-html.js in template