Made repeated HTML elements based on a template and cloned them in a for loop.