secure store.js and index.js