Updated index.html to use template system