changed script.js and imported javascript in index.html