HTML file summary; refactoring