a JS mock for indexeddb, with jasmine examples