Defining the JSON response script