> Here I have to access oneObject.
You can't, it's a local variable within the function you assigned to the `createTabs` variable. Unless you export it (make it publicly accessible in some way, for instance by assigning it to your `package1` object as a property), it's completely private to `createTabs`.
Side note: Your code is falling prey to The Horror of Implicit Globals[1]. Strongly recommend properly declaring variables to avoid that.
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com