javascript return string from async function