var container = document.getElementsByClassName('container')[0];
var container = document.getElementsByClassName('container')[0]; // '<div class="container">Something</div>'
var container = document.getElementsByClassName('container')[0];
console.log(container.outerHTML);