[WIP] File writer and opener for cordova