Fixed JS activating homepage navbar links [skip ci].