Basically you will edit this the same way as the "menu.js". You will however open the "sidebar.js" in Notepad instead of the "menu.js". See Editing .js Files for detailed help. Or see sidebar or menu not appearing for fixing any errors.
Editing example of a "sidebar-right.js" file in Windows Notepad: