Show n hide component

Looks like index isn't actually used inside out template.

Also I'm not convinced that the plugin requires an explicit index, instead we should let the code work this out.