Duplicate script in index and scripts.js