Try PouchDB.