Refactoring HTML files