updated index.html and script.js

Fixed the title of index.html and added variables to script.js