This can't work, because getElementsByClassName (see the plural in the name) does return a collection of elements (a little bit like an array), even if it finds only one element.
But the whole part is redundant, since you created the element from script just a few lines ago and stored it in "var einfuegen".
just use
einfuegen.appendChild(einfuegen2);