Dynamically Add Custom Elements to template