Storage related stuff has a place. storage.js. Move it there.