Extracted the script from the .html file