modified navigation.js