Autogenerating results in html file