format index.html code