scripts.js fixed