Typescript Async Functions Javascript W3schools Dom Events