JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<div id="cover"></div>
<template id='filtertemp'>
<button id="filtype" class='filbut' data-filter=""></button>
</template>
<button id='create' onclick="filter();">Click</button>
JavaScript
function filter(){
var content= $('#filtertemp')[0].content;
if(content){
var filType= content.querySelector('#filtype');
$(filType).text("type : sometype");
var clone= document.importNode(content,true);
$('#cover').append($(clone));
$('#cover > .filbut:last-child').append('<span class="glyphicon glyphicon glyphicon-remove"></span>');
}
$('.glyphicon').on('click', function(){
alert('Remove');
});
}