minor changes to nav js