Fixed navigation JS show/hide bug