changed loadJSON function signature