getJSON now takes id as an input