nodejs call async function from main