A very simple javascript to generate a form based on field inputs