Move `#nav` specific Javascript into `if` block
Merge pull request #3 from leek/patch-1

Move Javascript