Save as HTML with images and run through Calibre:
$ ebook-convert index.html book.epub
Here are the files if you trust a rando on the internet. Since they're just ZIP archives, you can unpack and inspect both to make sure there's no JS there. .mobi looks fine on my Kindle.