index.js is generating json variables