Fix javascript to show exact fields