Nav Generator

navGenerator.js just takes the sidebar as input and returns the GRANDPARENTs. The use-case is showing all the grandparents in the navbar when it's set to automatic mode.