first version of side-menu.js that works