used ajax to load and read the json file