*Note: Re-writing question:
I am trying to write the following outside of the individual function calls:
example:
function f1(){
instead of
firstFunction(function(){ secondFunction(); });
write
firstFunction(); secondFunction();