Move templates out of index.html