script.js: changed attr call to toggle()