Modified index.html template and grunt index task to allow the template to be used in build task and compile task.