Update storage.js

Added encapsulation.
Update main.js

Encapsulated storageChanged.
Merge pull request #5 from ElectricAxel/patch-1

More encapsulation