$(document).ready(function() {
$('body').wrapInner('<div class="content" />');
});
const div = document.createElement("div");
const nodes = document.body.childNodes;
while (nodes.length) div.appendChild(nodes[0]);
document.body.appendChild(div);