built getJSON request function