fix nav link, modify JS to on-load