Ensures first error is visible when a form cannot be submitted

JSONForm now automatically scrolls (using "scrollIntoView") to the
first field that triggered an error when the form is submitted. This
makes it easier to sport errors in long forms (there was no visual
feedback otherwise).