Factory for declaring custom HTML elements