add conditional to js to fix case files link in nav