Update index.html

start the app only after loading template.html