Replace insertBefore -> appendChild