ChatGPT refactoring javascript to use async/await, add error handling, fix bugs, use reasonable naming, divide to functions and add beginner level comments. English prompting on general level like this, NO CODE WRITTEN. Original newb code on left.