docs: function findInsertIdx(children, after) {
      var childrenTags = children.map(function(child) { return child.tag; });
      var afters = after.split(';');
      var afterIndexes = afters.map(function(current) { return childrenTags.lastIndexOf(current); });
      var foundIndex = _.find(afterIndexes, function(index) { return index != -1; });
  
      //add to the beginning if no matching nodes are found
      return typeof foundIndex === 'undefined' ? 0 : foundIndex+1;
  }