add storage method to app.js