Configuration parameters such as pagination are set outside of /public/pasta.js and /harvester/pasta_harvester.mjs'. That way, commits to pasta.js` can purely be about improving functionality rather than changing settings.
That can be done in a script that calls pasta.js if the window.onload function in pasta.js was replaced with a regular function definition, and then the calling function (either in a separate script or inline in the HTML) would modify settings as desired (either inline or from a config file) and call the function to initiate the catalog.