Convert code in `src/core/function.js` to use "normal" classes
Convert code in `src/core/function.js` to use "normal" classes

All of this code predates the existence of native JS classes, however we can now clean this up a bit. This patch thus let us remove some variable "shadowing" from the code.

mozilla/pdf.js,showpad/mozilla-pdf.js,timvandermeij/pdf.js,showpad/mozilla-pdf.js,mozilla/pdf.js,Snuffleupagus/pdf.js,timvandermeij/pdf.js,macroplant/pdf.js,showpad/mozilla-pdf.js,nawawi/pdf.js,nawawi/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,Shoobx/pdf.js,xavier114fch/pdf.js,xavier114fch/pdf.js,Shoobx/pdf.js,nawawi/pdf.js,macroplant/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js