Refactored html2.tpl, refs #120

It looks not exactly as before, but similar.