JS. scope for sidebarList, offsets