learned some more practical javascript

added a sidebar collapse