Nested Functions In Javascript Are Objects Passed