I think this could be refactored, maybe, you could create an object then assign the values as needed, also, you are querying at least two times for the same element, assign the element to a variable then extract the values needed

example:
```
new_interval = { subscription_interval : {}};
times = $('#subscription_interval_times');
unit = $('#subscription_interval_time_unit option:selected');
new_interval.subscription_interval= { 
                     name:  times.val()  + ' ' + unit.text(), 
                     times: times.val(), 
                     time_unit: unit.val(), 
                      product_id: $('#product_id').val()
```

or something like that xD