Altered code in script.js