Added json.js file and adjusted main.js.