cocos2d-js saving file to directory

Hi, is there any way to save files (ex. text files) to the current directory in cocos2d-js?

I’m trying to implement save files, but currently stuck without knowing how to get this done.

With JSB, jsb.fileUtils have several API to manipulate files, but they are not complete, you can take a look at frameworks/cocos2d-x/cocos/platform/CCFileUtils.h