fixed up structure and executing the index.html as a template from the server.