Updating generateConversionHtml function for CSS / HTML fix