Fix issue where inserted node did not notify old parent
Have appendChild call insertBefore