Completed JavaScript for version 2

JavaScript completed for both randomizers along with validation

Note: difference between files labeled version 1 and 2,
version 1 contains no javascript
version 2 contains javascsript