use pre-compile logic for active nav items instead of JS