JS sidebar logic

Started sidebar logic