The code that creates the JavaScript apis takes the xquery function names and camelCases them for JavaScript. It should do the same thing for parameter names.
For example, temporal.documentLoad has a parameter named temporal-collection. This bug is to turn that into temporalCollection (I think it could use the same function to do that as the code that camelCases the function names).