finished javascript to show/hide header (left sidebar)