JavaScript on click sample.