Use a subclass for HTML elements rather than dynamically extending a module.