Used $index instead of name to work with not-selector–compliant names

Some names of the groups contain invalid characters for ids (like spaces) and thus it becomes impossible to click on them (it will not switch to the repositories in the list). I switched the hash tag use the list index instead. This way the names don't matter and it should work. It would have been better though if the groups had id's as well.