javascript async function return error