Added the global variables and the procedure required in the flowchart, incorporating several other required elements, and linked the JSON file to the html file