Hygiene: Cleanup navigation.js

Remove some dead code from it, reorganize the rest.

Change-Id: Ieb811e5690dd522ad41cff64b2245154aca469d2