format index.html and adds title