auto-generate index.html
moved from google code