format the original Box2Dweb code