Oh, somehow I accidentally renamed the script.js file, and when I changed it back it fixed. Thank you for the advice about using the console tab!
Nice debugging!