changes in json file structure and js code