Made it so that JS creates the button rather than writing it into the HTML through the Python script