Function InitVelocityConstraints, in the realtime.js file in the physics behavior, line 9242, has a faulty variable decleration. This error causes the game to crash when running in preview mode and as a html. Happens probably on all kind of exports as well.
The faulty decleration looks like this:
var K = new b2Mat22();
and should look like this:
var K = new Box2D.Common.Math.b2Mat22();
I tried with the new line and it does not crash the game when running in preview mode or as a html file.