bower install lds-replace-element-with
#Replace an element in the DOM with a rendered HTML string or other node.
var replace = require('replace-element-with'),
foo = document.querySelector('.foo');
replace(foo, '<p class="bar">I\'m new here!</p>');