reinstate previous nav js