reconfigured nav.js for webkit compliance