put some helper function in a box2.js module
add allowSleep for box2d.js component