The only things I added were html controls for the objects.
Most of it is based off of https://github.com/doebi/liquidfun.js-demo/tree/master
If you want faster framerate, shrink your window.
• B : Create physics box
• W : Create blob of fluid
• Left mouse: Create Blob of Fluid
• Right mouse: Create frozen box
• Middle mouse: Create physics box
ngl I'm pretty sure if you tried hard enough you could conceivably make something similar without basing it on something.