Example in HTML and JS