var htmlToFragment = function(html){
  var proxy = document.createElement('div');
  proxy.innerHTML = html;
  var fragment = document.createDocumentFragment();
  while(proxy.firstChild){
    fragment.appendChild(proxy.firstChild);
  }
  return fragment;
};