Thank you for helping me find the code! nostr:npub1klr0dy2ul2dx9llk58czvpx73rprcmrvd5dc7ck8esg8f8es06qs427gxc helped me with a temporary fix (which I just posted). I will go back and write the code out better. This was a mock up thing I threw together when I was bored at work. I was entertaining myself with virtual trading cards.
I will go look at the w3 to see if I can fix this code though. It is start, but needs major love.