Using a template to write index.html now
fixed indentation errrors