Vanilla JavaScript + HTML

Put the below code in a HTML document and run it in the browser.