updated JSON to javascript arrayAND card UI