javascript await promise without async