small js update for sidebar

remember which hide/show you had for the sidebar