indexstorage.js: repair added + tests