Update makeHtml

Thanks for your code, Laurent! It makes life easier. I just shortened it with the same output.