formatted script.js