[NEW!] Integrated the JS function to the button HTML element.