Hi Doug,
Thanks for taking time and providing your feedback. Please provide more whenever you see mistakes.
For this one, I was anyway planning to write an updated article using web crypto APIs. Your feedback got that done.
Please see the updated article here: https://medium.com/deno-the-complete-reference/sign-verify-jwt-hmac-sha256-4aa72b27042a
Please check it out. If it still doesn't work for you, do let me know.