translate statcmp.py to javascript
Protects PDFJS.disableXXX == true from change
Merge pull request #4925 from yurydelendik/protdisable

Protects PDFJS.disableXXX == true from change
Merge pull request #4864 from fkaelberer/statcmp.js

Translate statcmp.py to JavaScript