VE-1558 Template search UI

https://wikia-inc.atlassian.net/browse/VE-1558
Variable "i" should never be used for anything else than integer index... suggestion:
```
for ( template in data.templates ) {
```