check for appendChild, if not use append