If you embed an inline script in a HTML document, you will get an error that inline scripts are not allowed. To solve that, the script needs to be moved to an external file, and linked to the document. This video shows how.