Updated script.js and index.html

Updated index.html with the correct title.  Also updated the script.js
file with an explaination of the program and the variables