swap navigator.js