JavaScriptNavigatorBar and index for NavBar