Water and Buoyancy with Chipmunk

Hi, I’m trying to make the same effect in this page:
http://cocos2d-x.org/js-tests/
pls select Chipmunk and select Buoyancy
if you loo in the code at the bottom of this page you can see as strange code :


how to use this code ?


Thank you.