The easiest way is to create a ‘note’ element, remove the label, and insert a <script> tag to do whatever you want.  Make sure to check the ‘HTML’ option in the note element, otherwise, the scripts and other markup will be shown as literal characters, not markup.

See How can I access my form via JavaScript? for more about forms and JavaScript.