stats to html