added a form that takes a value for num chairs per table
you create #chairs from the form, append them to the tables array