reading json data from index.js