Started replacing left over appendChild and createElement. Still needs some tweaks