Prepare navigation for JavaScript.