Squashed a number of errors in measurements_form

No change to functionality; just eliminated some PHP & javascript errors
by better formatting the measurements_form and measurements_report pages.