Removing insertBefore which will have trouble with testling