You can already play it in a favicon [0].

But as favicons can be svgs, and let you store foreign objects... You could store the whole thing in the favicon, but might also need a line of JS to extract it.

[0] https://vidferris.github.io/FaviconDoom/