Hi, I've been working with your approach, congrats for advance, useful and easy to implement.
I found that delete action button redirects before execute the form delete submit. I think that it would be fixed just adding an e.preventDefautl() on top of your click event listener.
File: Resources/views/internal/script.html.twig . Line 115