I wrote n-gon in JavaScript, CSS, and HTML using the matter.js 2-D physics library. The code is free and open source on GitHub. This is just my hobby project, but I try to fix bugs when reported.