<!DOCTYPE html>
<html>
<body>
<p>Here's some example text</p>
<script type='text/javascript'>
var jselem = document.createElement ("div");
jselem.innerHTML = '<p>and new content \'</p>';
document.body.appendChild(jselem);
</script>
</body>
</html>