fix javascript typo
Merge pull request #46 from typesafehub/fix/nav-bug

fix javascript typo