Create sidebar.js

created, added basic functionality