navigation for js codes