Adds some JS for dynamic forms.