I gave it a very naive try by just throwing everything out that's not supported in JS to see what would be left - and then I gave up after not too long.
You might want to look into going there with a detour using Emscriptem, I believe that offers some FS abstractions using local storage or something similar.
