Added some comments to the navigation JS.