Updated to use JSON to get popular chart