final update to script.js

Final update of all comments to program

Changed the inputNum function to accept two parameters instead of only
one.  Function now accepts the input message, and also an error message
making this function more reusable