Considering every modern browser supports async functions, would definitely use that syntax over the death tree of thenables for the code samples... the logic is difficult to follow.
Also, posting a more complete set of examples in a github or gist would be beneficial.