No need in cookies (radio inputs have the needed behaviour)
Index is rewritten using radios so it remembers the last category
Move +active to span
More concise code