JS on form submit

FORM API: adding JS on form submit