fixed duplicate lines in script.js