Added in the json code to jsonify data outward to the browser