Check first for parent active in nav js