The README says that there are no plans to continue supporting this project once the platform stops allowing the path-rewriting workaround to download ODM files. Based on discussions like [this one](https://gist.github.com/ping/b58ae66359691db1d08f929a9e57a03d), it sounds we've reached that point.
I thought this might be as good a place as any to look for updated workarounds.
There are solutions such as LibbyRIP that do what this used to but will lead to your card getting banned in Libby. It looks like the JavaScript is notifying the Libby back end that a script is being used to retrieve the files.