nodejs module to call a function when every async process is ready