removed extra data from json file. Added loadData function