insertBefore n c p inserts node c as child of node n,
just before node p, or as last child if p is empty.
The expression insertBefore n c p behave the same as
n##insertBefore(c, p) but avoid the need of coercing the
different objects to node t.