js updated

organized variables
adding a loop for radio buttons data collection
Doesn't work yet.