Cleanup minor issues in sidebar.js