document.querySelector('.test').innerHTML = `<style>
#myProgress {
width: 350%;
height: 20px;
background-color: #cecaca;
}
#myBar {
width: 10%;
height: 20px;
background-color: #04AA6D;
text-align: center;
line-height: 20px;
color: white;
}
</style>
<div id="myProgress">
<div id="myBar">10%</div>
</div>