Updated Javascript to read modified aggregatedResults XML