updates to generate an index.html: fix template and pass in dest to buildIndex method
fix index file names as they need that .html extensions