Box2D ported to JavaScript, rendered in canvas
box2d-js.sourceforge.net
box2d-js.sourceforge.net
You can edit draw_world.js to render objects in any way you want. The first change I made was to draw true circles instead of n-gons.
There's no reason for a physics engine to depend on one of these libraries, or even the DOM or Canvas. It's just crunching numbers.
Perhaps it is cleanly separated, I haven't looked.
Many people seem to not understand that the JavaScript language itself is fairly consistent across most browsers; it's the DOM and other browser APIs that aren't.
Release the core as a standalone library, and wrappers for your library of choice.