validate storage.js