JS-based RPG framework based on cocos2d familiy