added a type attribute and value of text/javascript to the script tag on the page