example(index): Fixed invalid autocomplete example code

Closes #121