Optimize renderHTML for speed (when using for: 0.896ms), (when using forEach: 0.235ms)