cocos2dx javascript and html5