script.js: fixed attr change