Building lightmodels of HTML files