removed bug in scripts.js