Revert "Move js to external again"

This reverts commit e0dc9c56fd0bdff46794ad47eaff6be48b42a090.
nav script only on first page