You can run the programs below using:
gjs ./example.js "https://example.com/video?id=ABCD"
Client:
Client Async: