switches generated html to html5