js append string as html without createElement code example
Example: how to create an html element in javascript without document
var myEl = $('<div> ....</div>');
$('#myDiv').append(myEl);
var myEl = $('<div> ....</div>');
$('#myDiv').append(myEl);