Change localstorage to indexedDB
The other files