Template for widget. Attach js to form.