add jquery function to serialize form object instead of field-by-field assignment