fixed #2039 : Merge main.js and cocos2d.js into a file