updated convertHtml5 script