A sample of how to implement a file system in indexedDB