Moving templates out of index.html