Change innerHTML call to create DOM components.