Moved the job of determining which nav link is active to pure JS
Now it can be called when an ajax page transition takes place