Get rid of global var "i".

Wrap everything after 'var Box2D={};' in '(function() {...})();'.