Add missing jsdocs for PDFJS globals.
Merge pull request #3796 from brendandahl/global-docs

Add missing jsdocs for PDFJS globals.
Minor nit fixes for api.js
Merge pull request #3810 from timvandermeij/nit-fixes

Minor nit fixes for api.js