captured filed input and put them in familyChildren and familyAdult objects in js.
added comments to code and discovered bug with my object length detection method in javascript