javascript get async function return value