get data in index.js