Add function to create custom DOM elements