first try at generating index.html, still a WIP