update main.js for json change in the return object