Fix $ reference for elements that are not direct children of form.

Switch $.each to forEach.
Switch to regular for loop.

Use $.val() instead of .value.
Merge pull request #1 from jperl/master

Fix $ reference for elements that are not direct children of form.