cleaned up the storage.js module