fixing scripts.js