Updated sadly hard-coded JS nav code for new docs, refs #283.