Saving active-tab in localStorage with sites objects