Write a client-side script in HTML with example