Stream in dom elements or html strings to add and update them as a nested multidimensional array