script.js better