I ported to JavaScript/Canvas the Flash version of this liquid simulator that has popped up on Reddit lately.
The original Java version can be found here. My JavaScript source can be found here.