Adds working template code to index.