This macro maps the properties of a field to a javascript variable.