As I understand now the Box2D version for web is leaking memory, bodies are not deleted, contacts neither. So how do I solve this problem?
See my related question here explaining how is leaking: How to properly delete a box2d body in version: Box2dWeb-2.1.a.3, Box2D_v2.3.1r3? Box2D bug?
it is possible that this post described how to patch this issue http://devizgl.blogspot.com/2012/03/box2d21a.html
You have to patch file Box2dWeb-2.1.a.3.js
Step 1 Add method Destroy() to the class b2Body:
Step 2 Add code to the end of the method DestroyBody of class b2World:
Step 3 Add this field to the class b2Contact:
Step 4 Add code to the method Destroy of class b2ContactFactory:
Step 5 Add code to the method Create of class b2ContactFactory: