See below article.
https://ics.media/entry/12206/
JavaScript library is available from the below url.
https://github.com/google/liquidfun/tree/master/liquidfun/Box2D/lfjs/testbed