add navigation item API for creating nav items in JS