HTML components using JavaScript to create