foo.step1 = function(){ do_some_thing(foo.step2) } foo.step2 = function(arg){ do_another_thing( ... ) } foo.step1() # enjoy