cleaned up main.js. removed the json request