Address Dinping's review: place .ctor in cocos2d_extern.js so that Closure Compiler won't obfucate it.