Using field to use input_id and name properties, and updating js referen...

...ce to field