cookbook: sidebar.js updates