commit working code for dynamic nav building on "build-nav" branch
The code work when written in pure JS. Commit the code before going back to master and trying to write in Coffeescript.