I've recently found node.js bindings for Bullet and a JS port of JBullet. I'm not sure whether either supports hinges or capsules or other things I like. Lousy LGPL on that port. Not sure about the license on the bindings.
Or maybe JigLibJS is the right thing to try?
Maybe robot sim in browser will come before too many years.