Added storage.js and basic API