function appendHTML(container,html,position){
position =position || 'after';
var objE = document.createElement("div"),
nodes=null,
fragment = document.createDocumentFragment();
objE.innerHTML = html;
nodes=objE.childNodes;
for (var i=0, length=nodes.length; i<length; i++) {
fragment.appendChild(nodes[0]);
}
position !=='before'? container.appendChild(fragment) : container.insertBefore(fragment,container.firstChild);
nodes = null;
fragment = null;
}
function appendHTML(container,html,position