javascript await inside try catch