Implemented write index.html