update new cocos2d html5 and bug fixes

preload g_mainmenu named incorrectly as g_maingame. No errors were
thrown?! Ok for JSB but not for HTML5 web. Strange...