Added code to auto-generate index.html