Fixed non-strict functions in PDF.js