bug 833579 - use insertBefore instead of appendChild