Update accordionNav.js

Fixed syntax error/optimized js.