refactoring HTMLMinify