I like how you were able to port to a web version quickly, you inspired me to revisit python/pygame
I used the pygbag library if it helps. It works well with pygame.