Fix localStorage model in minified JS