finally fixed insertBefore / after.