script.js edited to work for all HTML elements in a document