I'm not opposed to this change, but the reason that I didn't do it like this is that the function name isn't camelCase, see https://github.com/mozilla/pdf.js/blob/master/web/viewer.js#L3356.
Do you still want me to change it?