documentがなんかわからんけど、
getFirstChildでNode取って、insertBefore(挿入したいNode, さっき取ったNode)
でいけるんではなかろうか
確かめてないからしらんけど。