Refactoring of HTML pages