refactored HTML_HEAD and HTML_END to its own class to achieve better DRY