fix the this: https://trello.com/c/Bgun5Hhe/340-global-search-redirects-to-wrong-page-for-guides

I think this is more readable, so it's absolutely clear the block begins at zero:
```
var length = data.length,
    item, i;

    for (i = 0; i < data.length; i++) {
    ...
    }
```