Use Object.create to simplify element handling in HtmlGenerator