used $ getJSON to fetch names