Huh, here's something interesting. I just tried moving it into `<head>` and it didn't work; addEventListener() fails. If I leave it in `<body>`, it works. So I guess it does have to be in the body!